import type { App } from 'vue'
import { WXMiniProgramProxy } from './wxMiniProgramProxy'

export default {
  install(app: App, options?: any) {
    const wxMiniProgramProxyInstance = new WXMiniProgramProxy()

    app.provide('wxMiniProgramProxy', wxMiniProgramProxyInstance)
    app.config.globalProperties.$wxMiniProgramProxy = wxMiniProgramProxyInstance
  }
}
